﻿import 'package:get/get.dart';
import 'calendar_view.dart';
import 'year_calendar_view.dart';

/// 日历模块路由配置
class CalendarRoutes {
  /// 日历主页
  static const String calendar = '/calendar';

  /// 整年日历页
  static const String yearCalendar = '/calendar/year';

  static final List<GetPage> routes = [
    GetPage(
      name: calendar,
      page: () => const CalendarView(),
      // binding: BindingsBuilder(() {
      //   Get.lazyPut(() => CalendarLogic());
      // }),
    ),
    GetPage(
      name: yearCalendar,
      page: () => const YearCalendarView(),
      // binding: BindingsBuilder(() {
      //   Get.lazyPut(() => YearCalendarLogic());
      // }),
    ),
    // SimpleCalendarView 需要参数，不使用命名路由
    // 请直接使用 Get.to(() => SimpleCalendarView(calendarType: xxx))
  ];
}
